package com.wise.entities.content;

import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.validation.LengthRange;
import com.wise.framework.daoannotations.Column;
import com.wise.framework.daoannotations.Table;
import com.wise.framework.entitiesbasic.IdTimeEntity;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.Err_000900030104;

/**
 * @author futao
 * @date 2019/06/20
 */
@Table("dict_setting")
@Getter
@Setter
@ApiInfo("系统资源信息")
public class Setting extends IdTimeEntity {
    /**
     * name - json名（key）
     */
    @LengthRange(min = 1, max = 36, msg = Err_000900030104)
    @ApiInfo("资源名")
    @Column("name")
    private String name;
    public static final String _name = "name";
    /**
     * info - json数据（value）
     */
    @ApiInfo("资源数据")
    @Column("info")
    private String info;
    public static final String _info = "info";

    @Column("lang")
    private String lang;
    public static final String _lang = "lang";
}
